package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 部门岗位
 * @Author: jeecg-boot
 * @Date:   2019-10-30
 * @Version: V1.0
 */
@Data
@TableName("sys_depart_position")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_depart_position对象", description="部门岗位")
public class SysDepartPosition extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
	private String id;
	/**公司ID*/
	@Excel(name = "公司ID", width = 15)
    @ApiModelProperty(value = "公司ID")
	@Dict(dicCode = "id",dicText = "name",dictTable = "sys_tenant")
	private String companyId;
    private String tenantId;
	@TableField(exist = false)
	private String companyName;
	/**部门编号id*/
	@ApiModelProperty(value = "部门编号id")
	@Dict(dicCode = "id",dicText = "depart_name",dictTable = "sys_depart")
	private String departId;

	@TableField(exist = false)
	private String departName;

	/**职位code*/

    @ApiModelProperty(value = "岗位")
	@Dict(dicCode = "id",dicText = "name",dictTable = "sys_position")
	private String positionId;

	@TableField(exist = false)
	private String positionName;


	@TableField(exist = false)
	private List<String> positionIdList;


	/**职位类型 2:部门主管,*/
	@Excel(name = "职位类型 2:部门主管,", width = 15)
    @ApiModelProperty(value = "职位类型 2:部门主管,")
	private String positionType;
	/**实际人数*/
	@Excel(name = "实际人数", width = 15)
    @ApiModelProperty(value = "实际人数")
	private Integer realPersonNumber;
	/**岗位人数*/
	@Excel(name = "岗位人数", width = 15)
    @ApiModelProperty(value = "岗位人数")
	private Integer personNumber;
	/**创建者*/
	@Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新者*/
	@Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
	/**备注信息*/
	@Excel(name = "备注信息", width = 15)
    @ApiModelProperty(value = "备注信息")
	private String remarks;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private String delFlag;
   	@TableField(exist = false)
    private String officeId;
   	@TableField(exist = false)
    private List<String> idWorkReplace;

	/*构造列表或者树图*/
	@TableField(exist = false)
	private String value;
	@TableField(exist = false)
	private String title;
	@TableField(exist = false)
	private String key;
}
